﻿/*-------------------------------------------------------------------------
* 命名空间: XrayDirection.DAL.DataEntity/BaseEntity
* 类       名: BaseEntity
* 功      能:  TD
* 时      间:  2024/1/3 15:03:34
* 版      本:  V1.0
* 作      者:  Fioman
* 格      言:  Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace XrayDirection.DAL.DataEntity
{
    public class EntityBase
    {
        private int id;

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        private string? createTime;

        public string? CreateTime
        {
            get { return createTime; }
            set { createTime = value; }
        }

        private string? updateTime;

        public string? UpdateTime
        {
            get { return updateTime; }
            set
            {
                updateTime = value;
            }
        }
    }
}
